#ifndef SENSOR_WELECTRODE_H
#define SENSOR_WELECTRODE_H

#include "sensor_include.h"


// TYPEDEF

typedef enum
{
    ISIG_TIME,
    ISIG_WRK,
    ISIG_REF,
    ISIG_RAW,
    ISIG_BAD,
    ISIG_FILT,
    ROC_WRK,
    ROC_REF,
    ROC_RAW,
    ROC_SAVIT,
    ACC_RAW,
    EQUIV_FREQ,
    NOISE_LEVEL,
    ISIG_VAR,
    COUNT_DATAS
} we_data_type;


typedef enum
{
    BUF_ISIG_RAW,
    BUF_ISIG_BAD,
    BUF_ISIG_RAW_NOBAD,
    BUF_ISIG_FILT,
    BUF_ROC_REF,
    BUF_ROC_RAW,
    BUF_ROC_SAVIT,
    BUF_ACC_RAW,
    BUF_NOISE_LEVEL,
    BUF_ISIG_VAR,
    COUNT_BUFFERS
} we_buffer_type;


// Public function declaration

void WE_Initialize(void);
void WE_UpdateIsig( uint32 u32_time );
logical WE_Assert(void);
logical WE_NoiseHigh(void);
logical WE_Low(void);
logical WE_Hyposens(void);
logical WE_Nosens(void);
logical WE_IsRefValid(void);
uint32 WE_CnscBadSamples(void);
uint32 WE_CnscNormalSamples(void);
fixed32 WE_GetCurrent( we_data_type t_dataType );
fixed32 WE_GetCurrentIsigRef(void);
const cycle_buffer* WE_GetBuffer( we_buffer_type t_bufferType );


#endif // SENSOR_WELECTRODE_H
